using System.ComponentModel.DataAnnotations;

namespace RAGApp.Api.Models.DTOs;

public class DocumentUploadDto
{
    [Required]
    [StringLength(200)]
    public string Title { get; set; } = string.Empty;

    public string? Content { get; set; }

    public IFormFile? File { get; set; }

    [StringLength(100)]
    public string? Source { get; set; }
}

public class DocumentResponseDto
{
    public Guid Id { get; set; }
    public string Title { get; set; } = string.Empty;
    public string Content { get; set; } = string.Empty;
    public string? Source { get; set; }
    public DateTime CreatedAt { get; set; }
    public DateTime UpdatedAt { get; set; }
    public int ChunksCount { get; set; }
} 